using System;

namespace TeamReview.UI
{
    internal class BindingItemCodeReview
    {
        private readonly string title;
        public readonly int Id;

        public BindingItemCodeReview(string text, int id)
        {
            title = text;
            Id = id;
        }

        private string Caption
        {
            get 
            {
                return String.Format("{0} - {1}", Id, title);
            }
        }

        public override string ToString()
        {
            return Caption;
        }
    }
}